package com.xxwy.ddu.security.code.authentication.qq.connection;

import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionSignUp;

/**
 * @author xxwy
 * on 2018/8/23 0023
 * todo:用户自动就新建用户
 */
//@Component
public class DemoConnectionSignUp implements ConnectionSignUp {

    @Override
    public String execute(Connection<?> connection) {
        //根据社交用户信息，默认用户并返回用户第一标识
        return connection.getDisplayName();
    }
}
